home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / DELLINE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  433 b   |  25 lines

  1. /* p876.c --- bible */
  2. #include <conio.h>
  3. char text[] = " Testing delline. Press any key to go on.";
  4. main()
  5. {
  6.     int i, nlines = 11;
  7.     window(20, 10, 60, 10 + nlines - 1);
  8.     textbackground(RED);
  9.     clrscr();
  10. getch();
  11.     textcolor(YELLOW);
  12.     for(i = 1; i <= nlines; i++)
  13.     {
  14.         gotoxy(1, i);
  15.         (*text)++;
  16.         cputs(text);
  17.     }
  18. getch();
  19.     gotoxy(1, nlines / 2);
  20.     for(i = 0; i < nlines / 2; i++)
  21.     {
  22.         getch();
  23.         delline();
  24.     }
  25. }